/*
 * FileWriter.h
 *
 *  Created on: Jun 30, 2011
 *      Author: tflanzer
 */

#ifndef FILEWRITER_H_
#define FILEWRITER_H_
#include <deque>
#include <cstdio>
#include <stdio.h>
#include <list>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <map>
#include <string>

using namespace std;

class FileWriter {
public:
	map <string,double> out;
	ofstream *Sfile;
	string pnames[100];
	int noutput;

	FileWriter();
	virtual ~FileWriter();

	void updateValue(string name, double val);
	void printLine(void);
	void loadNames(void);
	void initializeValues();
	void writeFileHeader();
	void closeFile();
	std::string getDate(void);
};

#endif /* FILEWRITER_H_ */
